/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import request from '@/framework-core/axios';
import website from '@/framework-core/config/website';

export function pageByTenant(query) {
  return request({
    url: website.baseUrl+'/api/sys/role/pageByTenant',
    method: 'post',
    data: query
  })
}

export function listByTenant(query) {
  return request({
    url: website.baseUrl+'/api/sys/role/listByTenant',
    method: 'post',
    data: query
  })
}

export function fetchList(query) {
  return request({
    url: website.baseUrl+'/api/sys/role/page',
    method: 'post',
    data: query
  })
}

export function getObj(id) {
  return request({
    url:website.baseUrl+ '/api/sys/role/get?id=' + id,
    method: 'get'
  })
}


export function save(obj) {
  return request({
    url: website.baseUrl+'/api/sys/role/save',
    method: 'post',
    data: obj
  })
}


export function delObj(row) {
  return request({
    url: website.baseUrl+ '/api/sys/role/delete?id' + row.id,
    method: 'post'
  })
}

